<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<body>
	<ui:composition>
		<div class="divMenu">
			<h:form>
				<p:menubar>
					<p:menuitem value="#{bundle.label_menu_home}" url="${facesContext.externalContext.requestContextPath}/../pages/home.jsf" immediate="true" ajax="true"/>
					
					<p:submenu label="#{bundle.label_menu_cadastre}">
						<p:menuitem value="#{bundle.label_submenu_category}" url="${facesContext.externalContext.requestContextPath}/../pages/category.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_classification}" url="${facesContext.externalContext.requestContextPath}/../pages/classification.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_customer}" url="${facesContext.externalContext.requestContextPath}/../pages/customer.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_film}" url="${facesContext.externalContext.requestContextPath}/../pages/film.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_language}" url="${facesContext.externalContext.requestContextPath}/../pages/language.jsf"/>
					</p:submenu>
					
					<p:submenu label="#{bundle.label_menu_reports}">
						<p:menuitem value="#{bundle.label_submenu_category}" url="${facesContext.externalContext.requestContextPath}/../pages/category.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_classification}" url="${facesContext.externalContext.requestContextPath}/../pages/classification.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_customer}" url="${facesContext.externalContext.requestContextPath}/../pages/customer.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_film}" url="${facesContext.externalContext.requestContextPath}/../pages/film.jsf"/>
						<p:menuitem value="#{bundle.label_submenu_language}" url="${facesContext.externalContext.requestContextPath}/../pages/language.jsf"/>
					</p:submenu>
					
				</p:menubar>
				<p:spacer height="5"/>
				<div align="right" style="width:99%;">
					<h:outputText value="Bem vindo, #{applicationMB.nameUserLogged}" styleClass="linkMenu"/>
					<p:spacer width="5"/>
					<h:commandLink actionListener="#{applicationMB.logout}" value="Sair" styleClass="linkMenu"/>
				</div>				
				<p:spacer height="10"/>
			</h:form>
		</div>
	</ui:composition>
</body>
</html>